package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.entity.Spu;

@SuppressWarnings("ALL")
/**
 * @Description :
 * @author     :LD
 */
public interface SpuService extends IService<Spu>{
    void updateGood(SpuDTO spuDTO);

    PageDTO<SpuDTO> querySpuByPage(Integer page, Integer size, Boolean saleable, Long categoryId, Long brandId, Long id);

    void saveGoods(SpuDTO spuDTO);

    void updateSaleable(Long id, Boolean saleable);

    SpuDTO getSpuById(Long id);
}
